import request from "../../utils/request.js";

//告警统计表报-分类统计
export const getAlertClassifyApi = () => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/alertClassify", //请求地址
  });
};
//告警级别分布
export const getRankApi = () => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/rank", //请求地址
  });
};
//告警级别分布
export const getTrendApi = () => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/trend", //请求地址
  });
};
//日报周报月报
export const getDataPresentationDateApi = (query) => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/date", //请求地址
    params: query,
  });
};
//触发器Top10
export const getTopApi = (query) => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/top10", //请求地址
    params: query, //请求地址
  });
};
//主机告警top10
export const getAlarmTopApi = (query) => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/alarmTop10",
    params: query, //请求地址
  });
};
//历史日报周报月报
export const getEventApi = (query) => {
  return request({
    method: "get", //请求方式
    url: "/dataPresentation/get/event",
    params: query, //请求地址
  });
};
//通过历史周报月报查看报表
export const getHistoryDateApi = (data) => {
  return request({
    method: "post", //请求方式
    url: "/dataPresentation/history/date",
    data, //请求地址
  });
};
